var dbserver = require("../server/dbserver")
//获取好友列表
exports.getUsers = (req,res)=>{
  let data = req.body;
  dbserver.getUsers(data,res)
}
//获取最新的消息
exports.getOneMsg = (req,res)=>{
  let data = req.body;
  dbserver.getOneMsg(data,res)
}
//获取未读消息数
exports.unreadMsg = (req,res)=>{
  let data = req.body;
  dbserver.unreadMsg(data,res)
}
//修改消息状态
exports.updateMsg = (req,res)=>{
  let data = req.body;
  dbserver.updateMsg(data,res)
}
//获取群列表
exports.getGroups = (req,res)=>{
  let data = req.body;
  dbserver.getGroups(data,res)
}
//获取群成员
exports.getGroupUsers = (req,res)=>{
  let gid = req.body.gid;
  dbserver.getGroupUsers(gid,res)
}
//修改群消息状态
exports.updateGroupmsg = (req,res)=>{
  let data = req.body;
  dbserver.updateGroupmsg(data,res)
}
